<template>
  <div>
    {{ title }}
    <lxDrag :list="userList">
      <template #item="{ item }">
        <div class="item">
          {{ item.data.index }}
          <span>{{ item.data.name }}</span>
        </div>
      </template>
    </lxDrag>
  </div>
</template>

<script lang="ts" setup>
import lxDrag from '@/views/drag/lxDrag.vue'
import { userList } from '@/mokeTest/index'
const title = ref('拖拽')
</script>

<style lang="scss" scoped>
.item {
  width: 300px;
  display: flex;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  margin: 20px;
}
</style>
